﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SaleOnline.ascx.cs" Inherits="ControlUser_SaleOnline" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register src="uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc2" %>
<%@ Import Namespace="BCDataCenter" %>

<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/datePicker.css")%>' type="text/css" />
<script type="text/javascript"  src='<%=ResolveUrl("~/JScript/jquery.alphanumeric.js")%>'></script>
<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/K_BaoCaoFormLayout.css")%>' type="text/css" />

<script type="text/javascript">
    function pageLoad() {
        $("#<%= btSearch.ClientID %>").click(function () {

            $.blockUI({
                message: '<h1>Xin vui lòng chờ xử lý</h1>',
                css: {
                    border: 'none',
                    padding: '15px',
                    backgroundColor: '#f00',
                    opacity: .5,
                    color: '#fff'
                }
            });

        });
        $("#<%= btXem.ClientID %>").click(function () {

            $.blockUI({
                message: '<h1>Xin vui lòng chờ xử lý</h1>',
                css: {
                    border: 'none',
                    padding: '15px',
                    backgroundColor: '#f00',
                    opacity: .5,
                    color: '#fff'
                }
            });

        });

         Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
         function EndRequestHandler(sender, args) {
             $.unblockUI();
         }
     }  
   
</script> 
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <fieldset>
    <legend>Mua hàng trực tuyến</legend>
    <div class="fm-req">
                       <label for="txtMaTuVanVien">Mã BA:</label>
                       <asp:TextBox ID="txtMaTuVanVien" BackColor="Yellow" runat="server" ReadOnly="True" Width="150px"></asp:TextBox>
                   </div>
    <div class="fm-req">
                       <label for="txtTenTuVanVien">Họ tên:</label>
                       <asp:TextBox ID="txtTenTuVanVien" BackColor="Yellow"  ReadOnly="True" runat="server" Width="200px" MaxLength="30" TabIndex="1"></asp:TextBox>
    </div>
      <div class="fm-req">
                       <label for="txtTenTuVanVien">Tìm kiếm theo từ khóa:</label>
                       <asp:TextBox ID="txtFilter" runat="server" Width="200px" MaxLength="30" TabIndex="1"></asp:TextBox>
    </div>
     <div>
                    <asp:Button ID="btSearch" runat="server" Text="Tìm kiếm" 
                        onclick="btSearch_Click"/>
                        &nbsp;<asp:Button ID="btXem" runat="server" Text="Xem đơn hàng" 
                        onclick="btXem_Click"/>
    </div>
    <asp:DataList ID="DataList1" runat="server" DataKeyField="itemkey" 
                    RepeatColumns="3" RepeatDirection="Horizontal" 
    onitemcommand="DataList1_ItemCommand" CellPadding="0">
                    <ItemTemplate>
                   <div class="labwell_product_thumb">
                                        
                                              <img src='<%=Globals.ApplicationPath%>image/CD.png' width="80" height="50"/>
                                               <br />
                                            <div class="product_tilte margin_bottom">
                                                <asp:Label ID="lblDesc" runat="server" Text='<%# Eval("description")%>'></asp:Label></div>
                                            <span class="product_price margin_bottom">
                                            <asp:Label ID="lblPrice" runat="server" Text='<%# Eval("price")%>'></asp:Label></span>
                                         </a>
                                       <div class="margin_all">
                                             <asp:Button ID="btAddToCart"  CssClass="bt_submit" CommandName="AddToCart" runat="server" Text="Thêm vào giỏ hàng" />
                                              
                                         </div>

                    </div>
</ItemTemplate>
</asp:DataList>
    </fieldset>

</ContentTemplate>
</asp:UpdatePanel>